<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="button">按钮</button>
    <script>
        let button = document.getElementById('button');
        button.addEventListener('mousedown',function(event){
            console.log('mousedown');
        });
        button.addEventListener('mouseup',function(event){
            console.log('mouseup');
        });
        button.addEventListener('click',function(event){
            console.log('click');
        });
        button.addEventListener('dblclick',function(event){
            console.log('dblclick');
        });
    </script>
</body>
</html>